export default function (lyric_array) {
  let arr1 = [];
  lyric_array.forEach((item) => {
    let lrcObj = {
      key: "",
      value: "",
    };
    let arr = item.split("]");
    // 时间换算成秒
    let m = parseInt(arr[0].split(":")[0]);
    let s = parseInt(arr[0].split(":")[1]);
    arr[0] = m * 60 + s;
    if (arr[1] != "\n") {
      lrcObj.key = arr[0];
      lrcObj.value = arr[1].slice(0, -1);
      arr1.push(lrcObj);
    }
    // console.log(lrcObj);
  });
  return arr1;
}
